package xyz.xiaomeiqiu.bank.service.impl;

import xyz.xiaomeiqiu.bank.service.AccountService;
import xyz.xiaomeiqiu.bank.service.FrozenService;
import xyz.xiaomeiqiu.base.api.TransService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;


@DubboService
public class TransServiceImpl implements TransService {

    @Resource
    private AccountService accountService;
    @Resource
    private FrozenService frozenService;

    @Override
    public void transA() {
        accountService.transA();
    }

    @Override
    public void transB() {
        accountService.transB();
    }

    @Override
    public void frozeA() {
        frozenService.frozeA();
    }

    @Override
    public void frozeB() {
        frozenService.frozeB();
    }

    @Override
    public void unFrozeA() {
        frozenService.unFrozeA();
    }

    @Override
    public void unFrozeB() {
        frozenService.unFrozeB();
    }

}

